package com.fhz.main.adapter

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

/**
 * 时间:2023/4/12
 * @author Mr.Feng
 * 简述: data适配
 */
@BindingAdapter("imageUrl")
fun setImageUrl(view: ImageView, url:String?){
    if (url != null) {
        Glide.with(view.context)
            .load(url)
            .into(view)
    }else{
        println("url为空")
    }
}